//
//  UILabel+SWAdd.m
//  EnjoyEasy
//
//  Created by 曾少伟 on 2016/12/3.
//  Copyright © 2016年 腾程－zsw. All rights reserved.
//

#import "UILabel+SWAdd.h"

@implementation UILabel (SWAdd)
+ (instancetype)labelWithText:(NSString *)text
                    textColor:(UIColor *)textColor
                         font:(CGFloat)font
              backGroundColor:(UIColor *)backGroudColor
{
    UILabel *label = [[UILabel alloc]init];
    if (text) label.text = text;
    if (textColor) label.textColor = textColor;
     label.font = [UIFont systemFontOfSize:font];
    if (backGroudColor) label.backgroundColor = backGroudColor;
    return label;
}
@end
